package es.udc.emarketapp.http.view.actionForms;


import es.udc.fbellas.j2ee.util.struts.action.DefaultActionForm;

public class FindProductsForm extends DefaultActionForm {
    
   public final static Long ALL_CATEGORIES = new Long(1);

    private Long idCat;
    private String key;
    private int startIndex;
    private int count;
/*
    private String action;
    private Long idProd;
*/
    public FindProductsForm() {
        reset();
    }

    public Long getIdCat() {
        return idCat;
    }

    public void setIdCat(Long idCat) {
        this.idCat = idCat;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

     public int getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
/*
    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public Long getIdProd() {
        return idProd;
    }

    public void setIdProd(Long idProd) {
        this.idProd = idProd;
    }
*/

    private void reset() {
        idCat = null;
        key = null;
        startIndex = 1;
        count = 10;
     //   idProd = null;
    //    action = null;
    }
}
